package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.StoreAdPosition;
import com.ecoolex.hotel.saas.entity.StoreAdPositionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface StoreAdPositionMapper {
    long countByExample(StoreAdPositionExample example);

    int deleteByExample(StoreAdPositionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(StoreAdPosition record);

    int insertSelective(@Param("record") StoreAdPosition record, @Param("selective") StoreAdPosition.Column ... selective);

    StoreAdPosition selectOneByExample(StoreAdPositionExample example);

    List<StoreAdPosition> selectByExample(StoreAdPositionExample example);

    StoreAdPosition selectByPrimaryKey(Integer id);

    StoreAdPosition selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") StoreAdPosition record, @Param("example") StoreAdPositionExample example, @Param("selective") StoreAdPosition.Column ... selective);

    int updateByExample(@Param("record") StoreAdPosition record, @Param("example") StoreAdPositionExample example);

    int updateByPrimaryKeySelective(@Param("record") StoreAdPosition record, @Param("selective") StoreAdPosition.Column ... selective);

    int updateByPrimaryKey(StoreAdPosition record);

    int batchInsert(@Param("list") List<StoreAdPosition> list);

    int batchInsertSelective(@Param("list") List<StoreAdPosition> list, @Param("selective") StoreAdPosition.Column ... selective);

    int logicalDeleteByExample(@Param("example") StoreAdPositionExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}